<template>
  <view class="piece" :style="{ marginTop }">
    <slot></slot>
  </view>
</template>

<script setup lang="ts">
defineProps({
  marginTop: {
    type: String,
    default: '0px'
  }
})
</script>

<style scoped lang="scss">
.piece {
  display: flex;
  place-content: center center;
  margin: 0 auto;
  padding: 5rpx;
  width: 100%;
  border-radius: 20rpx;
  background-color: #fff;
  box-sizing: border-box;
  flex-direction: column;
}
</style>
